/*
 * @Author: pori pori@1960825664@qq.com
 * @Date: 2024-05-30 14:59:29
 * @LastEditors: pori pori@1960825664@qq.com
 * @LastEditTime: 2024-06-02 23:32:17
 * @FilePath: \yz\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from "vue";
import App from "./App.vue";
import router from "@/router/index";

import "@/assets/base.css";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

Vue.config.productionTip = false;

//定义全局过滤器
Vue.filter("dateFormat", function (date) {
  var dy = date.getFullYear();
  var dm = date.getMonth() + 1;
  var dd = date.getDate();
  var dh = date.getHours();
  var dms = date.getMinutes();
  var ds = date.getSeconds();
  return `${dy}-${dm}-${dd}  ${dh}:${dms}:${ds}`; //正则表达式
  //return dy+"-"+dm+"-"+dd+"  "+dh+":"+dms+":"+ds    //字符串
});







const app = new Vue({
  router,
  render: (h) => h(App),
});
Vue.use(ElementUI, { size: "small", zIndex: 3000 });

app.$mount("#app");
